//
//  YHClockhead.m
//  test
//
//  Created by 李彦宏 on 2018/2/26.
//  Copyright © 2018年 朱圳. All rights reserved.
//

#import "YHClockhead.h"

@implementation YHClockhead

//自定义head初始化方法
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUI];
    }
    return self;
}
//添加子控件
-(void)setUI{
    
    UILabel *lab = [[UILabel alloc]init];
    lab.font=[UIFont systemFontOfSize:16];
    lab.textColor=[UIColor blackColor];
    lab.textAlignment=NSTextAlignmentCenter;
    lab.numberOfLines = 0;
    [self.contentView addSubview:lab];
    [lab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.mas_equalTo(5);
        make.right.bottom.mas_equalTo(-5);
    }];
    self.headcoursename = lab;
}
-(void)setHeadmodel:(PlanModel *)headmodel{
    headmodel=_headmodel;
    
    
    self.headcoursename.text=headmodel.coursename;
    
}


@end
